package com.steshov.trainer.model;

public class Task {

	private Integer id;

	private String exercise;

	private int amount;

	private long time;

	private byte generated;

	public Task(Integer id, String exercise, int amount, long time) {
		super();
		this.id = id;
		this.exercise = exercise;
		this.amount = amount;
		this.time = time;
	}

	public int getId() {
		return id;
	}

	public String getExercise() {
		return exercise;
	}

	public void setExercise(String exercise) {
		this.exercise = exercise;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}

	public long getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = time;
	}

	public byte getGenerated() {
		return generated;
	}

	public void setGenerated(byte generated) {
		this.generated = generated;
	}

	@Override
	public String toString() {
		return id + " " + getExercise() + " " + getAmount() + " " + getTime();
	}

}
